# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=gvm-tools
pkgver=2.1.0
pkgrel=0
pkgdesc="Collection of tools for remote controlling a OpenVAS / Greenbone"
url="https://github.com/greenbone/gvm-tools"
arch="noarch"
license="GPL"
depends="python3 py3-dialog py3-defusedxml py3-paramiko py3-lxml"
makedepends="py3-setuptools pyproject2setuppy"
source="$pkgname-$pkgver.tar.gz::https://github.com/greenbone/gvm-tools/archive/v$pkgver.tar.gz
create-setuppy.patch"

build() {
	python3 setup.py build
}

check() {
	python3 setup.py check
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="80933ab8303c1ff77451a9fafd9331b6a0b4c3ae40c4ea318171b6b9e969fb6f20c6970d021a14db1bf8ff816c7f779e2eb750bf84f9093055273f58ad04cda2  gvm-tools-2.1.0.tar.gz
716d1298104d924170041d69708fc417ec6d2bf96197c7c2f77397584b6c67881190272adbf224431be400a2e391d3d3e213a340411c0b9be9e6c9e097eedd5f  create-setuppy.patch"
